package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/5/29 0029
 **/
@Data
@ApiModel("审核提现单对象")
public class CheckWithdrawVo {

    @NotNull(message = "提现单不能为空，至少要选择一项")
    @Size(min = 1, message = "提现单不能为空，至少要选择一项")
    @ApiModelProperty(value = "提现单ID", required = true)
    List<Long> ids;

    @NotNull(message = "审核结果不能为空")
    @NumberPattern(regexp = "^1|2$", required = true, message = "审核结果参数不合法")
    @ApiModelProperty(value = "审核结果：1-审核通过，2-驳回", required = true, example = "1")
    private Integer result;

    @Length(max = 100, message = "审核备注长度限制100个字符")
    @ApiModelProperty(value = "审核备注")
    private String checkRemark;
}
